/**
 * 消息通知
 * @returns 返回模拟数据
 */
export const newsInfoList = [
	{
		title: '[发布] 2021年02月28日发布基于 vue3.x + vite v1.0.0 版本',
		date: '02/28',
		link: 'https://gitee.com/lyt-top/vue-next-admin',
	},
	{
		title: '[发布] 2021年04月15日发布 vue2.x + webpack 重构版本',
		date: '04/15',
		link: 'https://gitee.com/lyt-top/vue-next-admin/tree/vue-prev-admin/',
	},
	{
		title: '[重构] 2021年04月10日 重构 vue2.x + webpack v1.0.0 版本',
		date: '04/10',
		link: 'https://gitee.com/lyt-top/vue-next-admin/tree/vue-prev-admin/',
	},
	{
		title: '[预览] 2020年12月08日，基于 vue3.x 版本后台模板的预览',
		date: '12/08',
		link: 'http://lyt-top.gitee.io/vue-next-admin-preview/#/login',
	},
	{
		title: '[预览] 2020年11月15日，基于 vue2.x 版本后台模板的预览',
		date: '11/15',
		link: 'https://lyt-top.gitee.io/vue-prev-admin-preview/#/login',
	},
];

/**
 * 营销推荐
 * @returns 返回模拟数据
 */
export const recommendList = [
	{
		title: '优惠券',
		msg: '现金券、折扣券、营销必备',
		icon: 'ele-Food',
		bg: '#48D18D',
		iconColor: '#64d89d',
	},
	{
		title: '多人拼团',
		msg: '社交电商、开辟流量',
		icon: 'ele-ShoppingCart',
		bg: '#F95959',
		iconColor: '#F86C6B',
	},
	{
		title: '分销中心',
		msg: '轻松招募分销员，成功推广奖励',
		icon: 'ele-School',
		bg: '#8595F4',
		iconColor: '#92A1F4',
	},
	{
		title: '秒杀',
		msg: '超低价抢购引导更多销量',
		icon: 'ele-AlarmClock',
		bg: '#FEBB50',
		iconColor: '#FDC566',
	},
];

// admin

export const adminList = [
	{
		path: '/home',
		name: 'home',
		component: 'home/index',
		meta: {
			title: 'message.router.home',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: true,
			isIframe: false,
			roles: ['admin', 'common'],
			icon: 'iconfont icon-shouye',
		},
	},

	{
		path: '/system',
		name: 'system',
		component: 'layout/routerView/parent.vue',
		redirect: '/system/menu',
		meta: {
			title: 'message.router.system',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: false,
			isIframe: false,
			roles: ['admin'],
			icon: 'iconfont icon-xitongshezhi',
		},
		children: [
			{
				path: '/system/menu',
				name: 'systemMenu',
				component: 'system/menu/index',
				meta: {
					title: 'message.router.systemMenu',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'iconfont icon-caidan',
				},
			},
			{
				path: '/system/role',
				name: 'systemRole',
				component: 'system/role/index',
				meta: {
					title: 'message.router.systemRole',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'ele-ColdDrink',
				},
			},
			{
				path: '/system/user',
				name: 'systemUser',
				component: 'system/user/index.vue',
				meta: {
					title: 'message.router.systemUser',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'iconfont icon-icon-',
				},
			},
			{
				path: '/system/dept',
				name: 'systemDept',
				component: 'system/dept/index.vue',
				meta: {
					title: 'message.router.systemDept',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'ele-OfficeBuilding',
				},
			},
			{
				path: '/system/duties',
				name: 'systemDuties',
				component: 'system/duties/index.vue',
				meta: {
					title: 'message.router.systemDuties',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'ele-OfficeBuilding',
				},
			},
		],
	},
	{
		path: '/limits',
		name: 'limits',
		component: 'layout/routerView/parent.vue',
		redirect: '/limits/frontEnd',
		meta: {
			title: 'message.router.limits',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: false,
			isIframe: false,
			roles: ['admin', 'common'],
			icon: 'iconfont icon-quanxian',
		},
		children: [
			{
				path: '/limits/frontEnd',
				name: 'limitsFrontEnd',
				component: 'layout/routerView/parent.vue',
				redirect: '/limits/frontEnd/page',
				meta: {
					title: 'message.router.limitsFrontEnd',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin', 'common'],
					icon: '',
				},
				children: [
					{
						path: '/limits/frontEnd/page',
						name: 'limitsFrontEndPage',
						component: 'views/limits/frontEnd/page/index.vue',
						meta: {
							title: 'message.router.limitsFrontEndPage',
							isLink: '',
							isHide: false,
							isKeepAlive: true,
							isAffix: false,
							isIframe: false,
							roles: ['admin', 'common'],
							icon: '',
						},
					},
					{
						path: '/limits/frontEnd/btn',
						name: 'limitsFrontEndBtn',
						component: 'views/limits/frontEnd/btn/index.vue',
						meta: {
							title: 'message.router.limitsFrontEndBtn',
							isLink: '',
							isHide: false,
							isKeepAlive: true,
							isAffix: false,
							isIframe: false,
							roles: ['admin', 'common'],
							icon: '',
						},
					},
				],
			},
		],
	},
	// {
	// 	path: '/personal',
	// 	name: 'personal',
	// 	component: 'personal/index',
	// 	meta: {
	// 		title: 'message.router.personal',
	// 		isLink: '',
	// 		isHide: false,
	// 		isKeepAlive: true,
	// 		isAffix: false,
	// 		isIframe: false,
	// 		roles: ['admin', 'common'],
	// 		icon: 'iconfont icon-gerenzhongxin',
	// 	},
	// },
	{
		id: 'c8d7dc088e16e6b795c2a2142f18ab31',
		path: '/personal',
		name: 'personal',
		component: 'personal/index',
		redirect: '',
		meta: {
			title: '个人中心',
			isLink: false,
			isHide: false,
			isKeepAlive: false,
			isAffix: false,
			isIframe: false,
			roles: '',
			icon: 'iconfont icon-diannao1',
		},
		sortNo: 4,
	},
	// 风控管理
	{
		path: '/risk',
		name: 'risk',
		component: 'layout/routerView/parent.vue',
		redirect: '/risk/earlyWarning',
		meta: {
			title: 'message.router.risk',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: false,
			isIframe: false,
			roles: ['admin'],
			icon: 'iconfont icon-xitongshezhi',
		},
		children: [
			{
				path: '/risk/earlyWarning',
				name: 'riskEarlyWarning',
				component: 'risk/earlyWarning/index',
				meta: {
					title: 'message.router.riskEarlyWarning',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'iconfont icon-caidan',
				},
			},
		],
	},
];
// comm

export const commList = [
	{
		path: '/home',
		name: 'home',
		component: 'home/index',
		meta: {
			title: 'message.router.home',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: true,
			isIframe: false,
			roles: ['admin', 'common'],
			icon: 'iconfont icon-shouye',
		},
	},
	{
		path: '/system',
		name: 'system',
		component: 'layout/routerView/parent',
		redirect: '/system/menu',
		meta: {
			title: 'message.router.system',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: false,
			isIframe: false,
			roles: ['admin'],
			icon: 'iconfont icon-xitongshezhi',
		},
		children: [
			{
				path: '/system/menu',
				name: 'systemMenu',
				component: 'system/menu/index',
				meta: {
					title: 'message.router.systemMenu',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					roles: ['admin'],
					icon: 'iconfont icon-caidan',
				},
			},
		],
	},
];
// 测试
export const csList = [
	{
		path: '/login',
		name: 'login',
		component: () => import('/@/views/login/index.vue'),
		meta: {
			title: '登录',
		},
	},
];
